package com.ruide.mapper;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.ArrayList;
import java.util.List;

import com.ruide.vo.bankUsers;

public class bankUsersMapper implements IMapper{
	public List<bankUsers> map(ResultSet rst) {
		List<bankUsers> list=new ArrayList<>();
		try {
			while(rst.next()){
				bankUsers u=new bankUsers();
				u.setUserId(rst.getInt("userid"));
				u.setUsername(rst.getString("username"));
				u.setUserpass(rst.getString("userpass"));
				u.setMoney(rst.getInt("money"));
				list.add(u);
			}
			return list;
		} catch (SQLException e) {
			e.printStackTrace();
		}
		return null;
	}

}
